Question

Error in Screen Editor with SplitContainer: "Cannot create an object of type 'System.Int32' from its string representation '' for the 'Panel1MinSize' property."

  • 27 November 2020
  • 2 replies
  • 34 views

I have a problem with my customization project.

I added a SplitContainer manually to the aspx file since it is not avaible as control in the Screen Editor. It worked fine until I dared to remove Panel1MinSize of the SplitContainer in the Screen Editor. From then on Preview Changes always failes with this error message.

“Cannot create an object of type 'System.Int32' from its string representation '' for the 'Panel1MinSize' property.”

Setting this property again with an integer value does not help. Even after removing the splitter this error message prevents to preview the screen. The only way to get rid of it is to remove the hole screen and add it again with different ID.


2 replies

Userlevel 4
Badge +2

Hi @mhaps ,

From the Customization Project Editor, can you click File->Edit Project Items, and then locate the screen where you added the split container? Please copy-paste the entire contents of the XML Source you see here. I’ll try to help.

Sometimes the layout editor or manual ASPX edits will result in invalid customization XML which can’t be rendered or published; in such cases manually editing it from the Project Items is the only solution

Thanks for the quick reply.
I don’t have the aspx file anymore. It is not the reason for the problem. I removed the property Panel1MinSize  with the screen editor, not in the aspx file. Publishing the project was possible at any time.

After creating a new screen and copying the very same content the problem was gone.

Reply


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2020  Acumatica, Inc. All rights reserved