in

Data Techniques Online Forums

FindFax returns empty value

Last post 08-25-2008 2:55 PM by nicole. 8 replies.
Page 1 of 1 (9 items)
Sort Posts: Previous Next
  • 07-18-2008 2:42 PM

    FindFax returns empty value

    (Faxman 4.4.4.0 - .NET controls)

    I am finding that if I queue about 20 faxes in Faxman and then have my fax service use the FindFax method to check the status, I am getting an empty value returned. Meaning the FaxID couldn't be found? It will find the Fax while it's in the Pending log. The problem becomes when one fax fails/completes.

    Code:
    fax_item = FaxMan1.FindFax(fax_id)
    If IsNothing(fax_item) Then
    myLog.WriteEntry("fax_item is empty for fax_id" & fax_id.ToString)
    End If

    My log is showing:
    fax_item is empty for fax_id311

    My problem then becomes that the code is inside a larger for loop. So the FindFax code ends up executing over and over again since conditions are not being met to exit. But the weird part is it never finds the fax. It keeps returning an empty value. But I know the fax exists and has completed or failed by looking at the data in the VbNetSample.exe.

    Why does FindFax return nothing? And if it can't find a fax once, why can't it find it again later?

  • 07-18-2008 3:33 PM In reply to

    Re: FindFax returns empty value

    I attempted to use QueryLog when FindFax failed to work. And it returned nothing as well. Even though I can clearly see the fax in the FailedLog using VbNetSample.exe...

    fax_item = New DataTech.FaxManNet.Fax
    Try
    fax_item = FaxMan1.FindFax(fax_id)
    If IsNothing(fax_item) Then
    myLog.WriteEntry("fax_item is empty for fax_id" & fax_id.ToString)
    Try
    Dim query As String = "FaxID = " & fax_id.ToString & "')"
    Dim results As DataTech.FaxManNet.Log = FaxMan1.QueryLog(query)
    Dim log_entries As Short = results.Count
    If log_entries > 0 Then
    myLog.WriteEntry("Found " & log_entries.ToString & " fax entries")
    Try
    fax_item = results.Item(0)
    Catch ex As Exception
    myLog.WriteEntry(
    "Error setting fax_item from query: " & ex.ToString, EventLogEntryType.Error)
    End Try
    End If
    Catch ex As Exception
    myLog.WriteEntry(
    "Error querying fax logs " & ex.ToString, EventLogEntryType.Error)
    End Try
    End If
    Catch ex As Exception
    myLog.WriteEntry(
    "Error Finding Fax: " & ex.ToString, EventLogEntryType.Error)
    End Try

  • 07-21-2008 1:49 PM In reply to

    Re: FindFax returns empty value

    Hi Nicole,

    Could you email us the database (faxman4.db) file you are using so we can check this out ? Send it to support@data-tech.com and pls reference this thread.

    Sean
    Data Techniques Online Support
  • 07-31-2008 10:13 AM In reply to

    Re: FindFax returns empty value

    I just found this issue on a server that only had 8 faxes queued.

    Send Time         Sent Time        FaxID         Status
    9:59                   9:59               1110           Complete
    9:59                  10:01              1112           Complete
    9:59                  10:03              1113           Complete
    9:59                  10:06              1117           Complete
    10:07                                      1114           LineBusy
    10:12                                      1111           NoConnect   <--- This is when the empty value was returned
    10:13                                      1115           NoConnect
    10:14                                      1116           NoConnect

     In my testing, I was only seeing the empty value returned when I was getting different failure statuses. At one point I ended up with all the same errors (Timeout) and did not get the error. Again, it doesn't happen all the time so I'm not really sure where the issue is.

     

  • 07-31-2008 12:41 PM In reply to

    Re: FindFax returns empty value

    I realized my query string was wrong (it had a parenthesis at the end...)

    Now when I try to run the query log part using query: FaxID = 380

    I get this error:

    System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
    at System.Runtime.InteropServices.Marshal.PtrToStructureHelper(IntPtr ptr, Object structure, Boolean allowValueClasses)
    at System.Runtime.InteropServices.Marshal.PtrToStructure(IntPtr ptr, Type structureType)
    at DataTech.FaxManNet.Fax..ctor(IntPtr ptr)
    at DataTech.FaxManNet.FaxMan.CreateLog(String query)
    at DataTech.FaxManNet.FaxMan.QueryLog(String query)

    And every query afterwards says:

    System.NullReferenceException: Object reference not set to an instance of an object.
    at DataTech.FaxManNet.Fax..ctor(IntPtr ptr)
    at DataTech.FaxManNet.FaxMan.CreateLog(String query)
    at DataTech.FaxManNet.FaxMan.QueryLog(String query)

  • 07-31-2008 1:50 PM In reply to

    Re: FindFax returns empty value

    I found a Microsoft kb that I think is related to this issue...
    http://support.microsoft.com/kb/923028
    I'm trying to see if I can get a hold of the hotfix to test it.

    Does Faxman 4.4.4.0 use the .NET Framework 2.0?

  • 07-31-2008 3:07 PM In reply to

    Re: FindFax returns empty value

    I installed the .NET Framework 2.0 SP1 (which includes the hotfix from the kb article) and I'm still getting the error.

    Have you had any luck reproducing the issue on your end?

  • 08-04-2008 9:03 AM In reply to

    Re: FindFax returns empty value

    Hi Nicole,

     

    Can you pls email us the exact query and faxman4.db file you are using so we can try to reproduce this ?

    Sean
    Data Techniques Online Support
  • 08-25-2008 2:55 PM In reply to

    Re: FindFax returns empty value

    Any updates on this issue? I have sent 2 emails previously requesting an update and have not received a response.

Page 1 of 1 (9 items)
Copyright 2007 Data Techniques, Inc. All Rights Reserved.