cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Former Member
Not applicable
Report Inappropriate Content
Message 1 of 8

Autodomain - Error (3122): Type Mismatch: 'CDate'

I have a user that gets the subject error every time he boots. Has anyone seen this VB error as it relates to autodomain? Is there a solution out there?

Message was edited by: eguhlin on 7/19/10 10:25:54 AM CDT
7 Replies
Former Member
Not applicable
Report Inappropriate Content
Message 2 of 8

Re: Autodomain - Error (3122): Type Mismatch: 'CDate'

Is there anybody who is able to help with this? Although the users are able to log in and work, It would not be prudent for me to have errors popping up on users machines after logging in. Any help would be much appreciated.

SafeBoot
Reliable Contributor
Reliable Contributor
Report Inappropriate Content
Message 3 of 8

Re: Autodomain - Error (3122): Type Mismatch: 'CDate'

sure - what version of Autodomain are you using though? The line number isnt useful unless I know what code to look at.

Former Member
Not applicable
Report Inappropriate Content
Message 4 of 8

Re: Autodomain - Error (3122): Type Mismatch: 'CDate'

Thank you. We are using autodomain version 5.25

SafeBoot
Reliable Contributor
Reliable Contributor
Report Inappropriate Content
Message 5 of 8

Re: Autodomain - Error (3122): Type Mismatch: 'CDate'

interesting - it's trying to get the date of a sync delay.

do you have a copy of the client log which goes along with these machines? Maybe the date is not in a format I expect to see.

If iPos = 0 Then     

               ' no delay message

               V5SyncDelayStartTime = Now

               Else

               ' delay message in log, work out when the delay expires

               i = InStrRev(myfile,vbNewLine,iPos,vbtextcompare) + 1

               j = InStr(i,myfile,vbTab,vbtextcompare)

               If j>i Then

                    ' get the start time

                    V5SyncDelayStartTime = CDate(Mid(myfile,i,j-i))

                    Else

                    V5SyncDelayStartTime = Now

               End If

               ' get the delay

               i = InStr(i,myfile,"for ",vbtextcompare)

               j = InStr(i,myfile,"minutes",vbtextcompare)

               Debug.WriteLine Mid(myfile,i)

               Debug.WriteLine Mid(myfile,j)

               tTime = Mid(myfile,i+4,j-(i+5))

               

               V5SyncDelayStartTime = DateAdd("n",ttime,V5SyncDelayStartTime)

               writedebug 1,"Detected next sync will start at " & V5SyncDelayStartTime

          End If     

Former Member
Not applicable
Report Inappropriate Content
Message 6 of 8

Re: Autodomain - Error (3122): Type Mismatch: 'CDate'

I have sent an email to get the log file. The user is in EMEA and not online, so I will post as soon as I get it. Thanks for the help.

SafeBoot
Reliable Contributor
Reliable Contributor
Report Inappropriate Content
Message 7 of 8

Re: Autodomain - Error (3122): Type Mismatch: 'CDate'

curious - I wonder if the reported date is in USA format (month-day-year), not the format of the locale.

It would certainly throw the script out, as cDate expects the text to be in the same locale as the system. 

Former Member
Not applicable
Report Inappropriate Content
Message 8 of 8

Re: Autodomain - Error (3122): Type Mismatch: 'CDate'

Simon,

I spoke to the tech in EMEA and he said the error disappeared as mysteriously as it appeared. However, I have attached the log in case this can help someone in the future.

You Deserve an Award
Don't forget, when your helpful posts earn a kudos or get accepted as a solution you can unlock perks and badges. Those aren't the only badges, either. How many can you collect? Click here to learn more.

Community Help Hub

    New to the forums or need help finding your way around the forums? There's a whole hub of community resources to help you.

  • Find Forum FAQs
  • Learn How to Earn Badges
  • Ask for Help
Go to Community Help

Join the Community

    Thousands of customers use the McAfee Community for peer-to-peer and expert product support. Enjoy these benefits with a free membership:

  • Get helpful solutions from McAfee experts.
  • Stay connected to product conversations that matter to you.
  • Participate in product groups led by McAfee employees.
Join the Community
Join the Community