【问题标题】:Same customization not working after upgrading to 5.2升级到 5.2 后相同的自定义不起作用
【发布时间】:2015-08-06 17:10:41
【问题描述】:

我有一个使用合作伙伴网站 Web 服务创建案例的定制项目。它工作得很好,但是在我将我的 Acumatica 从版本 5.10.0537 升级到 5.20.0531 之后,它就停止了工作。最终,甚至合作伙伴网站也升级到相同的版本。它只是在一段时间后超时。

下面是自定义代码

        // Use webservice to create a case
        CaseAPI.Screen context = new CaseAPI.Screen();
        context.CookieContainer = new System.Net.CookieContainer();
        context.Url = "https://partner.acumatica.com/Soap/SP203000.asmx";
        CaseAPI.LoginResult result = context.Login("usernam", "password***");

        CaseAPI.Content schema = context.GetSchema();
        schema.Attributes.Attribute.Commit = true;

        var commands = new CaseAPI.Command[] {
            new CaseAPI.Value { Value = "contract01", LinkedCommand = schema.Case.Contract},
            new CaseAPI.Value { Value = "Medium", LinkedCommand = schema.Case.Priority},
            new CaseAPI.Value { Value = "this is test sub", LinkedCommand = schema.Case.Subject },
            new CaseAPI.Value { Value = "this is test descrip", LinkedCommand = schema.Details.Description },

            new CaseAPI.Value { Value = "Product", LinkedCommand = schema.Attributes.Attribute},
            new CaseAPI.Value { Value = "Acumatica ERP", LinkedCommand = schema.Attributes.Value, Commit = true},

            new CaseAPI.Value { Value = "Product Version", LinkedCommand = schema.Attributes.Attribute},
            new CaseAPI.Value { Value = "5.0", LinkedCommand = schema.Attributes.Value, Commit = true },

            new CaseAPI.Value { Value = "Version and Build Number", LinkedCommand = schema.Attributes.Attribute},
            new CaseAPI.Value { Value = "8768", LinkedCommand = schema.Attributes.Value, Commit = true },

            new CaseAPI.Value { Value = "Acumatica Instance URL", LinkedCommand = schema.Attributes.Attribute},
            new CaseAPI.Value { Value = "http://www.kdss.com", LinkedCommand = schema.Attributes.Value, Commit = true },

            new CaseAPI.Value { Value = "Customer Site User Name (Support)", LinkedCommand = schema.Attributes.Attribute},
            new CaseAPI.Value { Value = "myname", LinkedCommand = schema.Attributes.Value, Commit = true },

            new CaseAPI.Value { Value = "Customer Site Password (Support)", LinkedCommand = schema.Attributes.Attribute},
            new CaseAPI.Value { Value = "mypwd", LinkedCommand = schema.Attributes.Value, Commit = true },


            schema.Actions.Submit,
        };

        context.Submit(commands.ToArray());

光标卡在上面代码的最后一行。它继续滚动,永远不会回来。终于超时了。有什么建议吗?

【问题讨论】:

  • 信息这么少,很难帮到你。我们不知道您从哪个版本升级、进行了哪些自定义以及您看到的症状是什么。
  • 更新了主要问题。
  • 我建议您使用 Acumatica 开一个支持案例,他们会直接使用您的实例进行故障排除。

标签: acumatica


【解决方案1】:

情侣建议

  1. 升级后您是否更新了应用中的 WSDL 架构
  2. 尝试简化代码并删除所有属性,只保留“标题”中的数据,这样行吗?

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-02-20
    • 1970-01-01
    • 2021-01-26
    • 1970-01-01
    • 2019-12-19
    • 1970-01-01
    • 2023-03-04
    • 2020-01-19
    相关资源
    最近更新 更多