Filemaker 10间歇性客户端错误-1728

时间:2012-09-10 13:28:44

标签: applescript filemaker

所有

在我们的一个Filemaker Server 10数据库应用程序中,客户端用户在运行脚本时连接到按钮时出现间歇性错误-1728错误:

未知错误:-1728

enter image description here

根据我从用户那里学到的东西,-1728错误发生在“show layout”命令之前。 (见下文)。我怀疑在错误之前执行的“set theInventoryID”命令:

set theDatabaseName to "F&B POs"
set theCellName to "Product ID"
tell application "FileMaker Pro"

  set theInventoryID to contents of cell "ID" of current record
  tell database theDatabaseName
  --  -1728 error happens here!!

  show layout "Inventory - All Quantities"
  show every record
  ...

FM中最好的做法是防弹吗?

喜欢什么?

tell application "FileMaker Pro"
 try
  set theInventoryID to contents of cell "ID" of current record
  on error
    display dialog ("Make sure all inventory ids are valid")
 end try

tell database theDatabaseName
--  -1728 error happens here
show layout "Inventory - All Quantities"
show every record
...

谢谢!

1 个答案:

答案 0 :(得分:0)

这是AppleScript错误“无法获取(某事)”。确保存在所有布局和字段。此外,如果从FileMaker中运行AppleScript,它不需要tell application "FileMaker Pro"/end tell阻止,因为它已经告诉应用程序。