Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/65.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Acumatica 多线程导入StockItem_Acumatica - Fatal编程技术网

Acumatica 多线程导入StockItem

Acumatica 多线程导入StockItem,acumatica,Acumatica,我正在使用Github()上的同一个应用程序,该应用程序根据我的需求进行定制,使用CSV的方式将项目导入库存。我将数据导入的字段几乎有90个,其中包括许多自定义字段。我创建了基于屏幕的api并导入数据。它没有给出任何错误,但它甚至没有导入任何数据。可能是什么问题 我正在使用Acumatica 6.00.1263版 下面是itemport.cs>Import方法 公共作废导入(列表项) { Console.WriteLine(“[{0}]正在向Acumatica提交{1}个项目…”,System

我正在使用Github()上的同一个应用程序,该应用程序根据我的需求进行定制,使用CSV的方式将项目导入库存。我将数据导入的字段几乎有90个,其中包括许多自定义字段。我创建了基于屏幕的api并导入数据。它没有给出任何错误,但它甚至没有导入任何数据。可能是什么问题

我正在使用Acumatica 6.00.1263版

下面是itemport.cs>Import方法

公共作废导入(列表项)
{
Console.WriteLine(“[{0}]正在向Acumatica提交{1}个项目…”,System.Threading.Thread.CurrentThread.ManagedThreadId,items.Count);
var commands=newin202500.commands[]
{
_itemsSchema.StockItemSummary.InventoryID,
_itemsSchema.GeneralSettingsItemDefaults.PostingClass,
_itemsSchema.GeneralSettingsItemDefaults.LotusSerialClass,
_itemsSchema.GeneralSettingsItemDefaults.TaxCategory,
_itemsSchema.GLAccounts.InventoryAccount,
_itemsSchema.GLAccounts.SalesAccount,
_项目Schema.GLAccounts.COGSAccount,
_项目SCHEMA.GLAccounts.POACCOUNTALACCOUNT,
_itemsSchema.FeedControlMarkets.AmazonCaaActive,
_itemsSchema.FeedControlMarkets.AmazonSactive,
_项目Schema.FeedControlMarketingBarcode.MarketingUPC,
_itemsSchema.FeedControlMarketingBarcode.MarketingEAN,
_itemsSchema.FeedControlMarketingBarcode.MarketingISBN,
_项目Schema.FeedControlMarketingBarcode.ASIN,
_项目SCHEMA.FEEDCONTROL FEEDCONTROL.DISABALLLFEEDS,
_itemsSchema.FeedControlWebsites.EQCActive,
_itemsSchema.FeedControlWebsites.HLZActive,
_itemschema.itemshandlingafnprep.afna附加注释,
_itemschema.itemshandlingafnprep.afnbublewrap,
_itemschema.itemshandlingafnprep.afncluberpolyBag,
_itemschema.itemshandlingafnprep.AFNExtraLabelNeeded,
_itemschema.itemshandlingafnprep.AFNOpaquePolyBag,
_itemschema.itemshandlingafnprep.afnsufficationlabel,
_itemschema.itemshandlingafnprep.AFNTaping,
_itemschema.itemshandlingafnprep.AFNFNSKUCA,
_itemschema.itemshandlingafnprep.AFNFNSKUUS,
_itemschema.itemshandlingother.CountryOfOrigin,
_itemschema.ItemHandlingOther.GenHarmCode,
_itemsSchema.ItemHandlingOther.JustInTimeFlag,
_itemsSchema.ItemHandlingOther.msdspf,
_itemsSchema.ItemHandlingShipmentPrep.BubbleWrap,
_itemsSchema.ItemHandlingShipmentPrep.ClearPolyBag,
_itemsSchema.ItemHandlingShipmentPrep.SuffocationLabel,
_itemsSchema.ItemHandlingShipmentPrep.TapeSeal,
_itemsSchema.JITControlsProductAvailability.OversellProtect,
_itemsSchema.JITControlsProductAvailability.RemoteOH,
_itemsSchema.JITControlsProductAvailability.PALastCostDate,
_itemsSchema.JITControlsProductAvailability.PALastFeedDate,
_itemsSchema.jitcontrolsPurchase.Dropship,
_itemsSchema.jitcontrol.PriceHoldCost,
_itemsSchema.jitcontrol.PriceHoldDate,
_itemsSchema.jitcontrolsPurchase.PriceHoldNote,
_itemsSchema.jitcontrol.PriceHoldPrice,
_itemsSchema.OtherCosts.Cost,
_itemsSchema.OtherItemNumber.BaseMaster,
_itemsSchema.OtherItemNumber.BaseNumber,
_itemsSchema.Other.CompositeMaster,
_项目SCHEMA.Other.CostCommission,
_项目SCHEMA.Other.CUSTORN不可退还,
_itemsSchema.Other.ProductLifecycleStatus,
_项目SCHEMA.Other.Discountable,
_itemschema.Other.FirstLiveDate,
_itemschema.Other.NewProdDate,
_项目schema.Other.ParkStatus,
_itemschema.Other.PKQFlag,
_itemschema.Other.ProdId,
_itemschema.Other.ShortTitle,
_itemschema.Other.VendorBaseSKU,
_项目SCHEMA.Other.CorpCategoryId,
_itemsSchema.Other.ParentItemClass,
_项目schema.PricingMAPMSRP.SRP,
_itemsSchema.PricingMAPMSRP.MapPrice,
_项目schema.PricingMAPMSRP.IgnoreMapPrice,
_itemschema.PricingRepricer.lastReperticerWebPriceUpdate,
_itemsSchema.PricingRepricer.SendReplicer,
_itemschema.PricingRetailLocations.RetailShowPrice,
_itemsSchema.PricingRetailLocations.RetailStorePrice,
_项目Schema.PricingWholesale.DistributorPrice,
_项目schema.PricingWholesale.DLRQPrice,
_项目schema.PricingWholesale.DLREAPrice,
_itemschema.PricingRepricer.lastReprecarazuspriceUpdate,
_项目SCHEMA.包装尺寸.长度,
_项目SCHEMA.包装尺寸.高度,
_itemsSchema.StockItemSummary.Description,
_itemsSchema.PricingWebPrice.WebPrice,
_itemsSchema.Other.MakeOffer,
_itemsSchema.Other.ManuBaseNumber,
_itemsSchema.Other.FixData,
_itemsSchema.Other.FixDataReason,
_itemsSchema.FeedControlMarketingBarcode.Barcode,
_项目SCHEMA.Other.ManuProdNo,
_itemsSchema.StockItemSummary.ItemStatus,
_项目SCHEMA.Other.ManuId,
_itemsSchema.VendorDetails.VendorID,
_itemsSchema.VendorDetails.VendorInventoryID,
_itemsSchema.VendorDetails.PurchaseUnit,
_项目SCHEMA.包装尺寸.重量,
_项目SCHEMA.OtherCosts.ReplacementCost,
_itemsSchema.ItemHandlingShipmentPrep.ShippingNotes,
_项目SCHEMA.包装尺寸.宽度,
新价值
{Value=“Size”,LinkedCommand=\u itemschema.AttributesAttributes.attributes,Commit=true},
_itemschema.Actions.Save
};
字符串[][]数据=新字符串[items.Count][];
整数计数=0;
foreach(项目中的项目)
{
数据[计数]=新字符串[92];
数据[count][0]=item.int_prod_no.ToString();
数据[计数][1]=item.item\u类;
数据[计数][2]=“默认值”;
数据[count][3]=“NOTRACK”;
数据[计数][4]=“默认值”;
数据[计数][5]=“12010”;
数据[计数][6]=“40010”;
数据[计数][7]=“50010”;
数据[计数][8]=“20265”;
data[count][9]=item.amazon_ca_active.ToString();
data[count][10]=item.amazon_us_active.ToString();
数据[计数][11]=item.marketing\u upc;
数据[计数][12]=项。市场营销;
数据[计数][13]=item.marketing_isbn;
数据[计数][14]=item.asin;
数据[计数][15]=item.digital_quantial.ToString();
数据[计数][16]=item.eqc_active.ToString();
数据[计数][17]=item.hlz_active.ToString();
数据[计数][18]=item.afn\u附加注释;
数据[计数][19]=item.afn\u bubble\u wrap.T