• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 966
  • Last Modified:

HrESEBackupPrepare Error - doesn't fills the INSTANCE_BACKUP_INFO structure

Hi all,

   I'm writing a small backup application using ESE Backup API.  When I call HrESEBackupPrepare it get executed successfully with return value S_OK. But the subsequent HrEseBackupSetup call fails with the following error in system event log.
System Event log message is:
---------------8<----------
Source   :  ESE Backup
Category : Callback
EventID  : 904

"Information Store (2568) Callback function call
ErrESECBPrepareInstanceForBackup ended with error 0xC7FE1F45 Instance
not found."
--------->8-----------

Although  HrESEBackupPrepare  was success , the INSTANCE_BACKUP_INFO's cDatabase and cIconDescription values was 0 (which i initialized  before the HrESEBackupPrepare call). But the instance_count (which was 1 - No of Information store in exchange server)  and hInstanceId ( valid integer) seems to be correct.

Any guess where I'm going wrong.

Regards,
Aravind T

 




   
0
aravindtj
Asked:
aravindtj
  • 4
  • 2
1 Solution
 
ksharma4Commented:
What happens if you run backup using NTBACKUP Util

Is this the first time you facing issues?? Did u change anything ?

Check for all the latest patches?

Check the link mentioned below:

http://www.eventid.net/display.asp?eventid=904&eventno=1905&source=ESE%20Backup&phase=1

Thanks
K
0
 
aravindtjAuthor Commented:
Hi sharma,
 
 Thanks for reply.

  NT Backup util performs backup/Restore without any problem.  

  I didn't change anything in my exchange server  2003 (sp2)  .

Regards,
Aravind
0
 
ksharma4Commented:
This issue is with backup software then. Please contact them.

Thnx
0
Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

 
aravindtjAuthor Commented:
Hi  ,
 I use  esebcli2.dll to write small backup application.

Regards.,
Aravind T.
0
 
aravindtjAuthor Commented:
Hi,

 Solved this issue by sending  pointer to INSTANCE_BACKUP_INFO pointer  to  HrESEBackupPrepare  call.

 Thanks for ur time.

Regards.,
Aravind T.
0
 
aravindtjAuthor Commented:
Actually I declared teh function pointer for getting INSTANCE_BACKUP_INFO as pointer to pointers[INSTANCE_BACKUP_INFO**]. And then the problem is solved.
Thanks for support.

Moderator, can you refund my points please?

Regards,
Aravind
0
 
GranModCommented:
PAQed with points refunded (250)

GranMod
Community Support Moderator
0

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now