Skip to main content

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.

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.


I have the problem again. This time it is the property MinHeight of AutoSize.

I removed the Value in the Screen Editor. Then Preview Changes fails with “Cannot create an object of type 'System.Int32' from its string representation '' for the 'MinHeight' property.”

I found the empty MinHeight in the aspx file and removed it. But that did not help! I can publish and run the project without error but Preview Changes still fails.

I’ve attached the aspx file but as I mentioned before it seems the aspx is ok and the error is hiding somewhere else.


@Gabriel Michaud Preview still crashes. Is it possible to ‘reset’ the Screen Editor somehow?

 

Thanks


You can certainly remove the screen completely from the customization, but I’d suggest opening a support ticket with Acumatica dev support. It’s a bug...


If you are on a local version or have file access you can fix it by opening the aspx page in the AcumaticaInstance/CstDesigner/YourUsername_YourProject/Page.aspx directory and then fixing the field.

For some reason putting an invalid configuration prevents the customization editor from saving any changes to the actual designer aspx file.


Reply