Developer forum

Forum » Ecommerce - Standard features » Error creating instance in repository

Error creating instance in repository

Aki Ruuskanen
Reply

Hi, 

I get an script error when trying to create an instance in a repository (Management Center > Repositories > My repo > My index > Add instance). 

The error is in angular.js.  I had it in 8.7.3. Tried to upgrade to 8.8 but still get the same error. Same thing in IE and Chrome. 

How do I solve this?

TypeError: Cannot read property '$dirty' of undefined
    at h.$scope.buildIndex (IndexController.js:109)
    at angular.js:10567
    at angular.js:18627
    at h.$eval (angular.js:12412)
    at h.$apply (angular.js:12510)
    at HTMLInputElement.<anonymous> (angular.js:18626)
    at angular.js:2780
    at q (angular.js:330)
    at HTMLInputElement.c (angular.js:2779)

Regards / Aki


Replies

 
Nicolai Høeg Pedersen
Reply

Hi Aki

Make sure your browser cache gets updated.

Do you get a 404 when running with the debugging window in the browser`?

 
Aki Ruuskanen
Reply

I tried in IE which I have never used for this project with same error. So it should not be a caching issue. 

I do not get any 404. 

  1. I go in to my index. 
  2. I click on "Add instance".
  3. I fill out the fields. 
  4. I click "Save".

A screencast

/Aki

 

 
Nicolai Høeg Pedersen
Reply

Is something written to disk? Could it be that your /Files/System is under source control and because of that locked for writing?

If that is the case, checkout the entire folder for editing and try again.

Otherwise we need a public access to the solution to be able to help.

NP

 
Aki Ruuskanen
Reply

Thought about that too. 

Products.index was written to disk when I created the repository. Tried to checkout the entire folder. No change. 

But I tried it on our stagingserver and it actually worked there.

Would be interesting to know why it fails on my local machine. Hmm... 

/Aki

 

 

You must be logged in to post in the forum