Guest User

Untitled

a guest
Jul 17th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. ERROR [Sitecore Services]: System.NullReferenceException: Object reference not set to an instance of an object.
  2. at Sitecore.Services.Infrastructure.Sitecore.Handlers.CreateItemHandler.HandleRequest(CreateItemCommand request)
  3. at Sitecore.Services.Infrastructure.Sitecore.Controllers.ItemServiceController.ProcessRequest[T](Func`2 handler, HandlerRequest query)
  4.  
  5. $('#MyButton').click(function() {
  6. var url = "/sitecore/api/ssc/item/sitecore%2Fcontent%2F%home%2FMy%20Folder";
  7.  
  8. $.ajax({
  9. method: "POST",
  10. contentType: "application/json",
  11. url: url,
  12. data: {
  13. ItemName: "TemporaryTestFile",
  14. TemplateID: "982F124F-B871-42DD-9915-D5411BFF8715"
  15. },
  16. success: function() {
  17. alert('success');
  18. },
  19. error: function(xhr, status, error) {
  20. alert(xhr.status + ' - ' + error);
  21. }
  22. });
  23. });
Add Comment
Please, Sign In to add comment