This commit is contained in:
2020-04-30 22:30:47 +00:00
parent f31a6ea872
commit 53b853bf91

View File

@@ -159,6 +159,7 @@ namespace AyaNova.PlugIn.V8
private Dictionary<Guid, long> Map = new Dictionary<Guid, long>();
private Dictionary<Guid, string> TagMap = new Dictionary<Guid, string>();
private Dictionary<string, string> CustomFieldLocaleKeys = new Dictionary<string, string>();//holds custom field Raven as key and v7 custom text for that field for later export
private string ImportTag = "v7-import";
/// <summary>
@@ -190,7 +191,8 @@ namespace AyaNova.PlugIn.V8
TODO:
*
* locales
*
* todo locales for custom fields fixup - needs objects keys at destination first.
* todo: once have moved beyond what's in the v8 import stuff then need to remove all that, though maybe comment out some bits as some may be useful for import / export??
*
* TODO: User, fixup translationID, headofficeid, clientid vendorid, phone1, phone2, pagermaxtext
@@ -543,40 +545,7 @@ namespace AyaNova.PlugIn.V8
progress.SubOp("");
}
/*
Exporting customized Locales
ERROR, During operation: Exporting Custom English to Custom English (en)
Posting key: WorkorderItem.Label.OutsideService
************
Export failed with error:
PUT error, route: Translation/UpdateTranslationItemDisplayText
{"error":{"code":"2005","message":"Object was changed by another user since retrieval (concurrency token mismatch)"}}
Conflict
stack:
at AyaNova.PlugIn.V8.util.<PutAsync>d__26.MoveNext() in c:\data\ayanova\source\Plugins\AyaNova.Plugin.V8\util.cs:line 185
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at AyaNova.PlugIn.V8.V8.<ExportLocales>d__5c.MoveNext() in c:\data\ayanova\source\Plugins\AyaNova.Plugin.V8\V8.cs:line 527
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
at AyaNova.PlugIn.V8.V8.<DoExport>d__0.MoveNext() in c:\data\ayanova\source\Plugins\AyaNova.Plugin.V8\V8.cs:line 245
*/
#region locale utility
public class TranslationItem
{