AX – D365FO – How to solve error “The model element was saved with unparsable source code and cannot be used”

Error: The model element was saved with unparsable source code and cannot be used. Please edit the element in Visual Studio to fix the errors: (CUS) [] K:\AosService\PackagesLocalDirectory\bin\XppSource\\.xpp

image

Possible reason: Sometimes when we rename the object name in code and manually rename the object from Solution explorer, respective metadata still pointing to old names.

Suggested Solution:
This issue doesn’t fix even after DB synch and Model build. The only solution I can find for this issue is by deleting the object and create a new one. Yes, delete the object and create a new one with same code and name. This should fix this error.
Let me know if you found some other fix for the same.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s