When Deploy is installed and you try to save a Forms Umbraco Documents prevalue source using an XPath query for the root node, the following error is shown: Prevaluesource failed to save
. The prevalue source is saved though, but Deploy throws an exception when trying to refresh the artifact signature (using Forms as content):
System.FormatException: Input string was not in a correct format.
at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at System.Convert.ToInt32(String value)
at Umbraco.Deploy.Forms.ServiceConnectors.PreValueSourceConnector.Map(GuidUdi udi, IFieldPreValueSource preValue, ICollection`1 dependencies)
at Umbraco.Deploy.Forms.ServiceConnectors.PreValueSourceConnector.GetArtifact(GuidUdi udi, IFieldPreValueSource preValue)
at Umbraco.Deploy.Forms.ServiceConnectors.PreValueSourceConnector.GetArtifact(Object o)
at Umbraco.Deploy.Connectors.ServiceConnectors.ServiceConnectorBase`3.Umbraco.Core.Deploy.IServiceConnector.GetArtifact(Object o)
at Umbraco.Deploy.Forms.SignatureRefresherDbComponent.GetArtifact(IFieldPreValueSource entity)
at Umbraco.Deploy.Forms.SignatureRefresherDbComponent.<Initialize>b__6_4(Object sender, FieldPreValueSourceEventArgs args)
...
Reproduction
/umbraco#/forms/prevaluesource/edit/-1?create
)Persons
$root//person
Umbraco 8.16.0
Umbraco Forms 8.7.6
Umbraco Deploy 4.2.0
Using <forms transferFormsAsContent="true" />
, but the same happens when set to false
, although the exception has a different stack trace (as it's trying to write the artifact to disk):
at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at System.Convert.ToInt32(String value)
at Umbraco.Deploy.Forms.ServiceConnectors.PreValueSourceConnector.Map(GuidUdi udi, IFieldPreValueSource preValue, ICollection`1 dependencies)
at Umbraco.Deploy.Forms.ServiceConnectors.PreValueSourceConnector.GetArtifact(GuidUdi udi, IFieldPreValueSource preValue)
at Umbraco.Deploy.Forms.ServiceConnectors.PreValueSourceConnector.GetArtifact(Object o)
at Umbraco.Deploy.Connectors.ServiceConnectors.ServiceConnectorBase`3.Umbraco.Core.Deploy.IServiceConnector.GetArtifact(Object o)
at Umbraco.Deploy.Forms.FormsDiskServiceDbComponent.GetPreValueArtifactFromEvent(FieldPreValueSourceEventArgs e)
at Umbraco.Deploy.Forms.FormsDiskServiceDbComponent.PrevalueSourceService_OnCreatedAndSaved(Object sender, FieldPreValueSourceEventArgs e)
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4