因為使用習慣上貼近一次整理一個禮拜的電子發票,先記錄後再對帳歸檔
這一兩個月使用發票同步時,經常會出現相同的錯誤
變成得一天一天抓到底哪一天發生了錯誤
像是這週後來就發現是這張單的問題
目前測試上,得在同步那天時把「下載發票明細」關閉,就會一切正常
但明明同樣其他天,也是品項很多的發票卻沒有同步的問題
隨手一天一天找又重現問題了,應該還是全家發票的問題
需要附上甚麼東西讓你們測試嗎?
要不是當天只有這一張發票,我可能沒辦法知道到底是誰的問題

如需叫用 Just-In-Time (JIT) 偵錯的詳細資料,
請參閱本訊息結尾處 (而非這個對話方塊) 的資訊。
************** 例外狀況文字 **************
System.Data.OleDb.OleDbException (0x80040E57): 欄位太小以致於無法接受您試圖加入的資料數量。請試著插入或貼上較少的資料。
於 System.Data.OleDb.OleDbCommand.ExecuteCommandTextErrorHandling(OleDbHResult hr)
於 System.Data.OleDb.OleDbCommand.ExecuteCommandTextForSingleResult(tagDBPARAMS dbParams, Object& executeResult)
於 System.Data.OleDb.OleDbCommand.ExecuteCommandText(Object& executeResult)
於 System.Data.OleDb.OleDbCommand.ExecuteCommand(CommandBehavior behavior, Object& executeResult)
於 System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method)
於 System.Data.OleDb.OleDbCommand.ExecuteNonQuery()
於 帳務小管家Emy.電子發票_發票載具記錄下載.ag(Object A_0, EventArgs A_1)
於 System.Windows.Forms.Control.OnClick(EventArgs e)
於 System.Windows.Forms.Button.OnClick(EventArgs e)
於 System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
於 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
於 System.Windows.Forms.Control.WndProc(Message& m)
於 System.Windows.Forms.ButtonBase.WndProc(Message& m)
於 System.Windows.Forms.Button.WndProc(Message& m)
於 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
於 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
於 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** 已載入的組件 **************
mscorlib
組件版本: 4.0.0.0
Win32 版本: 4.8.9290.0 built by: NET481REL1LAST_C
程式碼庫: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
帳務小管家 E-Money
組件版本: 20.25.0.5
Win32 版本: 20.25.0.5
程式碼庫: file:///G:/Dropbox/Personal/Money/%E5%B8%B3%E5%8B%99%E5%B0%8F%E7%AE%A1%E5%AE%B6E-Money/%E5%B8%B3%E5%8B%99%E5%B0%8F%E7%AE%A1%E5%AE%B6Emy.exe
----------------------------------------
Microsoft.VisualBasic
組件版本: 10.0.0.0
Win32 版本: 14.8.9037.0 built by: NET481REL1
程式碼庫: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System.Windows.Forms
組件版本: 4.0.0.0
Win32 版本: 4.8.9251.0 built by: NET481REL1LAST_C
程式碼庫: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
組件版本: 4.0.0.0
Win32 版本: 4.8.9282.0 built by: NET481REL1LAST_C
程式碼庫: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
組件版本: 4.0.0.0
Win32 版本: 4.8.9037.0 built by: NET481REL1
程式碼庫: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
組件版本: 4.0.0.0
Win32 版本: 4.8.9037.0 built by: NET481REL1
程式碼庫: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Core
組件版本: 4.0.0.0
Win32 版本: 4.8.9297.0 built by: NET481REL1LAST_C
程式碼庫: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Xml
組件版本: 4.0.0.0
Win32 版本: 4.8.9037.0 built by: NET481REL1
程式碼庫: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Accessibility
組件版本: 4.0.0.0
Win32 版本: 4.8.9037.0 built by: NET481REL1
程式碼庫: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
System.Runtime.Remoting
組件版本: 4.0.0.0
Win32 版本: 4.8.9214.0 built by: NET481REL1LAST_B
程式碼庫: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
System.Data
組件版本: 4.0.0.0
Win32 版本: 4.8.9214.0 built by: NET481REL1LAST_B
程式碼庫: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
Microsoft.VisualBasic.resources
組件版本: 10.0.0.0
Win32 版本: 14.8.9037.0 built by: NET481REL1
程式碼庫: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic.resources/v4.0_10.0.0.0_zh-Hant_b03f5f7f11d50a3a/Microsoft.VisualBasic.resources.dll
----------------------------------------
System.Data.resources
組件版本: 4.0.0.0
Win32 版本: 4.8.9037.0 built by: NET481REL1
程式碼庫: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Data.resources/v4.0_4.0.0.0_zh-Hant_b77a5c561934e089/System.Data.resources.dll
----------------------------------------
System.Transactions
組件版本: 4.0.0.0
Win32 版本: 4.8.9037.0 built by: NET481REL1
程式碼庫: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Transactions/v4.0_4.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
System.EnterpriseServices
組件版本: 4.0.0.0
Win32 版本: 4.8.9037.0 built by: NET481REL1
程式碼庫: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.EnterpriseServices/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------
System.Windows.Forms.resources
組件版本: 4.0.0.0
Win32 版本: 4.8.9037.0 built by: NET481REL1
程式碼庫: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_zh-Hant_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------
mscorlib.resources
組件版本: 4.0.0.0
Win32 版本: 4.8.9037.0 built by: NET481REL1
程式碼庫: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_zh-Hant_b77a5c561934e089/mscorlib.resources.dll
----------------------------------------
Interop.MSScriptControl
組件版本: 1.0.0.0
Win32 版本: 1.0.0.0
程式碼庫: file:///G:/Dropbox/Personal/Money/%E5%B8%B3%E5%8B%99%E5%B0%8F%E7%AE%A1%E5%AE%B6E-Money/Interop.MSScriptControl.DLL
----------------------------------------
System.Windows.Forms.DataVisualization
組件版本: 4.0.0.0
Win32 版本: 4.8.9037.0
程式碼庫: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.DataVisualization/v4.0_4.0.0.0__31bf3856ad364e35/System.Windows.Forms.DataVisualization.dll
----------------------------------------
Microsoft.Web.WebView2.WinForms
組件版本: 1.0.1722.45
Win32 版本: 1.0.1722.45
程式碼庫: file:///G:/Dropbox/Personal/Money/%E5%B8%B3%E5%8B%99%E5%B0%8F%E7%AE%A1%E5%AE%B6E-Money/Microsoft.Web.WebView2.WinForms.DLL
----------------------------------------
Microsoft.Web.WebView2.Core
組件版本: 1.0.1722.45
Win32 版本: 1.0.1722.45
程式碼庫: file:///G:/Dropbox/Personal/Money/%E5%B8%B3%E5%8B%99%E5%B0%8F%E7%AE%A1%E5%AE%B6E-Money/Microsoft.Web.WebView2.Core.DLL
----------------------------------------
System.Numerics
組件版本: 4.0.0.0
Win32 版本: 4.8.9037.0 built by: NET481REL1
程式碼庫: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll
----------------------------------------
************** JIT 偵錯 **************
若要啟用 Just-In-Time (JIT) 偵錯功能,則必須在
此應用程式或電腦的 .config 檔案中,設定
system.windows.forms 區段內的 jitDebugging 值。
且該應用程式也必須在啟用偵錯的狀態下進行
編譯。
例如:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
當 JIT 偵錯功能啟用後,會將所有未處理的例外狀況
傳送給電腦上已註冊的 JIT 偵錯工具進行處
理,而不是使用這個對話方塊來處理。
o慕雲o 寫:您好
您出現的錯誤訊息為 [資料的長度] 超過 [資料庫允許的最大長度] 的關係
我看一了一下您的圖片其中 [收付人] 的欄位超過了系統的最大長度(50 個英文字 -> 25 個中文字)(台灣中油那筆超過了)
您可以試著先把 電子發票系統設定 的 商家名稱記錄到帳務記錄 [收付人] 字數 選項先設為 [簡單記錄]
然後再下載試試看是不是這個欄位長度太長的關係
感謝您
jack_8720xx 寫:該週實際上發生錯誤的只有 3/12 這天
中油那天是完全沒問題的,我有先刪除紀錄再同步一次測試
我前面已經有提過了,我得勾選「不下載發票明細內容」
或者去設定 「下載電子發票是否同時下載明細內容:否」
「記錄到帳務紀錄」時才不會發生錯誤
而那個當下「收付人字數」調整簡約、一般、完整都不會出現任何錯誤
----
現在困擾我的點是因為每週,或者多天將發票記錄到帳務時,不定期會發生
一發生就得一個一個去試到底是哪一天有錯誤,選擇「不下載發票明細內容」,才能記錄到帳務
現在很明確的是,一旦發生問題,範圍縮小知道日期後,這個問題就可以被重現![]()
只要讀取「那天的發票」、「有下載明細」,接著記錄到帳務就一定跳錯誤
跟收付人完全沒有任何關係
jack_8720xx 寫:單純在原有的帳務小管家,開新帳本匯入匯出依然會出現錯誤
得重新搞一份軟體,重新設定後匯入,才會正常...
正在瀏覽這個版面的使用者:Bing [Bot] 和 23 位訪客