Skip to main content
Answer

How to Safely Revert Custom Field Type Change and how to unpublish only one customizaiton.

  • September 17, 2025
  • 3 replies
  • 58 views

Forum|alt.badge.img+3

Hello Community,

I need advice regarding a customization we applied on the InventoryItem DAC.

  • Initially, we had a custom field UsrUnitCost defined as [PXDBString], so in the database it was nvarchar.

  • Later, I changed it to [PXDBDecimal] and republished. This altered the DB column to decimal.

  • Recently, I changed it back to [PXDBString] because I wanted to show values like 20.33 BOX.

Now in production, I’m seeing errors such as:

The entry form (ID: IN202500, title: Stock Items) cannot be automated. An error occurred during processing of the field Unit Cost: Specified cast is not valid.

 

How can I unpublish only one customization to check whether the error goes away or not? This works fine in sandbox but in production this issue occurs 2 days after publish. I have atttached the package.

 

Thanks

Best answer by Abhishek Niikam

Hello Community,

I need advice regarding a customization we applied on the InventoryItem DAC.

  • Initially, we had a custom field UsrUnitCost defined as [PXDBString], so in the database it was nvarchar.

  • Later, I changed it to [PXDBDecimal] and republished. This altered the DB column to decimal.

  • Recently, I changed it back to [PXDBString] because I wanted to show values like 20.33 BOX.

Now in production, I’m seeing errors such as:

The entry form (ID: IN202500, title: Stock Items) cannot be automated. An error occurred during processing of the field Unit Cost: Specified cast is not valid.

 

How can I unpublish only one customization to check whether the error goes away or not? This works fine in sandbox but in production this issue occurs 2 days after publish. I have atttached the package.

 

Thanks



Hello ​@tahayabali 
As mentioned you changed [PXDBDecimal] to [PXDBString]- then you have to alter column again in DB - (Decimal-To-String) 

and for your 2nd query to unpublish 1 package is quite reverse thing 
 


Like above image those package you want to unpublish just uncheck the checkbox of that package & check the checkbox of rest packages that need to published as it is Press Save & click on Publish.

It will publish packages that checked.

I hope it helps!

3 replies

Forum|alt.badge.img+2
  • Jr Varsity III
  • Answer
  • September 17, 2025

Hello Community,

I need advice regarding a customization we applied on the InventoryItem DAC.

  • Initially, we had a custom field UsrUnitCost defined as [PXDBString], so in the database it was nvarchar.

  • Later, I changed it to [PXDBDecimal] and republished. This altered the DB column to decimal.

  • Recently, I changed it back to [PXDBString] because I wanted to show values like 20.33 BOX.

Now in production, I’m seeing errors such as:

The entry form (ID: IN202500, title: Stock Items) cannot be automated. An error occurred during processing of the field Unit Cost: Specified cast is not valid.

 

How can I unpublish only one customization to check whether the error goes away or not? This works fine in sandbox but in production this issue occurs 2 days after publish. I have atttached the package.

 

Thanks



Hello ​@tahayabali 
As mentioned you changed [PXDBDecimal] to [PXDBString]- then you have to alter column again in DB - (Decimal-To-String) 

and for your 2nd query to unpublish 1 package is quite reverse thing 
 


Like above image those package you want to unpublish just uncheck the checkbox of that package & check the checkbox of rest packages that need to published as it is Press Save & click on Publish.

It will publish packages that checked.

I hope it helps!


Manikanta Dhulipudi
Captain II
Forum|alt.badge.img+15

Hi ​@tahayabali 

 

Please untick the package which ever you need to unpublish to move forward.


Forum|alt.badge.img+3
  • Author
  • Captain I
  • September 17, 2025

Thanks It solved.