Thursday, 15 November 2018

Error importing solutions - "The 'options' attribute is invalid"

I hope that this post will be short-lived, and few people need it, but I had an issue today in Dynamics 365 v9.1 (version 1710 ( for completeness), where a solution file failed to import. The error occurred on initial parsing on the solution file. The error was 'This solution package cannot be imported because it contains invalid XML' , and the technical details were:

Schema Validation Failed

Schema validation of the customizations.xml file within the compressed solution package file failed. To manually validate and edit the file, you can download the schema file here and use an XML editor that supports schema validation to get more details.

The 'options' attribute is invalid - The value '' is invalid according to its datatype 'String' - The Pattern constraint failed

This was followed by a snippet of a view XML definition, which gave a hint to the problem. It looks like Dynamics 365 has new attribute 'options' within the fetchXml schema. This is currently set to an empty string, but the solution importer fails to recognise it, hence the error. The affected part of the xml is:

            <fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="true" options="" >

Fortunately, there's a relatively simple workaround to remove this attribute from a solutions file.
  1. Extract the solution xml
  2. Open customizations.xml
  3. Do a Find & Replace to remove all the following text: options=""
  4. Then recreate the .zip and it should import
This affects any solution that contains a view (I haven't tested to see if it also applies to charts or reports), and isn't due to a version mismatch between organisations, as I could replicate it by exporting and importing into the same organisation


Gary Kellett said...

Hi David,

Great find - we had the same issue yesterday. However, the update last night to online appears to have resolved the issue.


Subhash Komuravelli said...

Good Information... Thanks for sharing
cloud based crm software in hyderabad
erp software providers in hyderabad

Unknown said...

Really great post, Thank you for sharing This knowledge.Excellently written article, if only all bloggers offered the same level of content as you, the internet would be a much better place. Please keep it up!

OPAL CRM Software Company

ananthinfo said...

nice post..SAP Business One in Chennai
Sap Business One Company in Chennai
Sap Business One Partners in chennai
SAP Business One Authorized Partners in Chennai

Unknown said...

Thanks for sharing such a valuable information sap institute in Hyderabad

Evelin Harriet said...

The blog you have shared really worth for me.Thanks for Sharing..
SAP B1 in Chennai | SAP S/4 Hana in Chennai | SAP R3 in Chennai | ERP Providers in Chennai | HRMS Software Chennai

Praylin S said...

Very professionally written blog. Regards to your hard work and effort. Looking forward to learn a lot more from you. Do share more.
Microsoft Dynamics CRM Training in Chennai
Microsoft Dynamics CRM Training institutes in Chennai
C C++ Training in Chennai
C++ Training in Chennai
JavaScript Training in Chennai
JavaScript Course in Chennai
Microsoft Dynamics CRM Training in Anna Nagar
Microsoft Dynamics CRM Training in Tambaram


Nice post. Thanks for sharing! I want people to know just how good this information is in your article. It’s interesting content and Great work.
Thanks & Regards,
VRIT Professionals,
No.1 Leading Web Designing Training Institute In Chennai.

And also those who are looking for
Web Designing Training Institute in Chennai
SEO Training Institute in Chennai
Photoshop Training Institute in Chennai
PHP & Mysql Training Institute in Chennai
Android Training Institute in Chennai

Sphinax Info Systems said...

I like Your Post.......Thank you For Your Sharing

best web development company in chennai
hotel billing software in chennai
hrms software in chennai
payroll software in chennai
sap r3 software in chennai

Realtekh Consulting said...

Thanks for sharing the valuable information here. So i think i got some useful information with this content. Thank you and please keep update like this informative details.

erp software development company in us
erp software company in us
list of erp software companies in us
list of erp software companies in chennai
Latest CRM Software